import request from '@/utils/request'

//检查红包
export function checkRedpack(data: { rpkey: string }) {
    return request.post({ url: '/redpack/checkRedpackKey', data: data })
}

//领取红包
export function receiveRedpack(data: { rpkey: string }) {
    return request.post({ url: '/redpack/receiveRedpack', data: data }, { isAuth: true })
}